package com.mx.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mx.dao.impl.PersonDAOimpl;
import com.mx.entity.Person;
@Transactional
@Service("PersonService")
 public class PersonService {
 @Autowired
 private PersonDAOimpl personDAOimpl;
 public  List<Person> showAll(){
	 return personDAOimpl.findAllPerson();
 }
 //添加用户
 public void addperson(Person person){
	 personDAOimpl.add(person);
 }
 //删除用户
  public void delPerson(String id){
	  personDAOimpl.delPerson(id);
  }
  //导出将我们的数据导出去
  public void exportExcel(HttpServletResponse response, HttpServletRequest request){
	  
  }
}
